package com.wengu.mythread;

/**
 * @author wanghailei
 * @date 2023/02/27
 */
public class MyThread extends Thread{

    @Override
    public void run() {
        System.out.println(System.currentTimeMillis()+"--This is MyThread.........................begin");
        try {
            sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(System.currentTimeMillis()+"--This is MyThread.........................end");
    }

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis()+"--This is main.........................begin");
        MyThread myThread = new MyThread();
        myThread.start();
        System.out.println(System.currentTimeMillis()+"--This is main.........................end");

    }
}
